package com.coincalf.exchange.service;

import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;
import com.baomidou.mybatisplus.service.IService;
import com.coincalf.exchange.entity.User;
import com.coincalf.framework.constants.Constant;
import com.coincalf.framework.enums.AdminUserType;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author qiang
 * @since 2018-05-12
 */
public interface UserService extends IService<User>, Constant {

    /**
     * 获取管理员账户
     * @return
     */
    @Cached(name=CACHE_KEY_ADMIN_USER, cacheType = CacheType.LOCAL)
    User queryAdminUser(AdminUserType adminUserType);
}
